# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bandicoot
pkgver=0.6.0
pkgrel=8
arch=('any')
pkgdesc='A toolbox to analyze mobile phone metadata.'
groups=('blackarch' 'blackarch-mobile')
url='https://pypi.org/project/bandicoot/#files'
depends=('python')
makedepends=('python-setuptools')
license=('MIT')
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('05e56d361c5fe1b9e1a3bba72084e50f8451ee2448b06794483a3cfea4c45f37d0096f7b23fca1428d3660feba74c2414d1f1dde2a235c48e0218dee2525ec97')

build() {
  cd "$pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

